package com.by.common.utils;

import com.by.common.ex.BusinessException;

public class Assert {
    /**
     * 判断rs的结果 如果为零 不成功 抛出异常
     * @param rs
     * @param msg
     */
    public static void isNotSuccess(int rs,String msg){
if (rs==0){
    throw new BusinessException(msg);
}
    }
}
